package cn.signalpha.modules.com.excel;

import cn.signalpha.modules.com.excel.converter.WalletAmountTypeConverter;
import cn.signalpha.modules.com.excel.converter.WalletSourceConverter;
import cn.signalpha.modules.com.excel.converter.WalletTypeConverter;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.alibaba.excel.annotation.write.style.ContentRowHeight;
import com.alibaba.excel.annotation.write.style.HeadRowHeight;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * UserExcel
 *
 * @author signalpha
 */
@Data
@ColumnWidth(20)
@HeadRowHeight(20)
@ContentRowHeight(18)
public class UserWalletExcel implements Serializable {
	private static final long serialVersionUID = 1L;

	@ExcelProperty(value = "会员ID")
	private Long userId;

	@ExcelProperty(value = "会员昵称")
	private String userNickName;

	@ExcelProperty(value = "会员手机")
	private String userMobile;

	@ExcelProperty(value = "产生类型", converter = WalletTypeConverter.class)
	private Integer type;

	@ExcelProperty(value = "金额类型", converter = WalletAmountTypeConverter.class)
	private Integer amountType;

	@ExcelProperty(value = "产生金额")
	private Double amount;

	@ExcelProperty(value = "来源类型", converter = WalletSourceConverter.class)
	private String sourceType;

	@ExcelProperty(value = "来源ID")
	private String sourceId;

	@ExcelProperty(value = "备注")
	private String remark;

	@ExcelProperty(value = "创建时间")
	private Date createTime;

}
